#include <iostream>
#include <memory>
#include "httpServer.hpp"

using namespace  calServer;

static void Uages()
{
    std::cout << "Uages : " <<"./httpServer port" << std::endl; 
}

// ./httpServer port
int main(int argc , char * arvg[])
{
    if(argc != 2)
    {  
        Uages();
        exit(0);
    }
    // 开始执行客户端 
    uint16_t port = atoi(arvg[1]);


    std::unique_ptr<Server> server(new Server(port));
    server->init();
    server->start();

    return 0;
}
